<!DOCTYPE html>
<html lang="en">

<head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width,initial-scale=1.0">
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
      <title>AI网站</title>
      <style>
            .container {
                  display: -webkit-flex;
                  display: flex;
                  flex-direction: row;
                  justify-content: flex-start;
                  flex-wrap: wrap;
                  -webkit-flex-wrap: wrap;
                  align-content: flex-start;
            }

            .card {
                  width: 150px;
                  height: 100px;
                  border-radius: 10px;
                  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
                  text-align: center;
                  margin: 30px 20px;
                  border: 1px solid #ccc;
            }

            .desc {
                  font-size: 20px;
            }

            .card:hover {
                  border: 1px solid aqua;
            }

            img {
                  width: 100%;
                  height: 100%;
                  border-radius: 10px;
            }

            @media screen and (max-width:768px) {
                  .card {
                        width: 60px;
                        height: 50px;
                  }

                  .desc {
                        font-size: 15px;
                  }
            }
      </style>
</head>

<body>
      <div class="container">
            <div class="card">
                  <a target="_blank" href="https://sites.baidu.com/">
                        <img src="imgs/baidu.png" alt="百度新闻">
                  </a>
                  <div class="desc">百度新闻</div>
            </div>

      </div>
</body>
<script>
      var websites = {
            "sites": [
                  {
                        "name":"deepseek",
                        "imgUrl":"https://cdn.deepseek.com/chat/icon.png",
                        "url": "https://chat.deepseek.com/"
                  },
                  {
                        "name": "豆包",
                        "imgUrl": "https://p0.itc.cn/q_70/images03/20231230/8765927614cc48e986ca7b3f6e83c5b6.png",
                        "url": "https://www.doubao.com/chat/"
                  },
                  {
                        "name": "通义千问",
                        "imgUrl": "https://img.alicdn.com/imgextra/i4/O1CN01EfJVFQ1uZPd7W4W6i_!!6000000006051-2-tps-112-112.png",
                        "url": "https://www.tongyi.com/"
                  },
                  {
                        "name": "文心一言",
                        "imgUrl": "https://eb-static.cdn.bcebos.com/logo/favicon.ico",
                        "url": "https://yiyan.baidu.com/"
                  },
                  {
                        "name":"腾讯元宝",
                        "imgUrl": "https://cdn-hybrid-prod.hunyuan.tencent.com/manual/favicon.png",
                        "url": "https://yuanbao.tencent.com/chat/naQivTmsDa"
                  },
                  {
                        "name":"KIMI",
                        "imgUrl": "https://statics.moonshot.cn/kimi-web-seo/favicon.ico",
                        "url": "https://www.kimi.com/"
                  },
                  {
                        "name":"纳米AI",
                        "imgUrl": "https://p1.ssl.qhimg.com/t11098f6bcdb3c1c166a74ad70c.png",
                        "url": "https://www.n.cn/"
                  },
                  {
                        "name": "百度飞浆",
                        "imgUrl": "https://pic.rmb.bdstatic.com/bjh/down/d08b16579a40e1382f87f0837afecbc0.jpeg",
                        "url": "https://aistudio.baidu.com/overview"
                  },
                  {
                        "name": "DeepL翻译",
                        "imgUrl": "https://www.deepl.com/img/favicon/favicon_32.png",
                        "url": "https://www.deepl.com/translator"
                  },
                  // {
                  //       "name": "ChatGPT",
                  //       "imgUrl": "https://chat.openai.com/favicon-32x32.png",
                  //       "url": "https://chat.openai.com/"
                  // },
                  {
                        "name": "讯飞星火",
                        "imgUrl": "https://xinghuo.xfyun.cn/favicon.ico",
                        "url": "https://xinghuo.xfyun.cn/"
                  },
                  // {
                  //       "name": "Google Bard",
                  //       "imgUrl": "https://www.gstatic.com/lamda/images/favicon_v1_150150cddff7f294ce30.svg",
                  //       "url": "https://bard.google.com/"
                  // },
                  // {
                  //       "name": "Claude",
                  //       "imgUrl": "https://claude.ai/favicon.ico",
                  //       "url": "https://claude.ai/"
                  // },
                  // {
                  //       "name": "Hugging Face",
                  //       "imgUrl": "https://huggingface.co/favicon.ico",
                  //       "url": "https://huggingface.co/"
                  // },
                  {
                        "name": "Notion AI",
                        "imgUrl": "https://www.notion.so/favicon.ico",
                        "url": "https://www.notion.so/product/ai"
                  },
                  {
                        "name": "Grammarly",
                        "imgUrl": "https://static.grammarly.com/assets/files/9a0fbb6c1a7f6b3b6b6f5b5f5b5f5b5/favicon.ico",
                        "url": "https://www.grammarly.com/"
                  },
                  {
                        "name": "QuillBot",
                        "imgUrl": "https://quillbot.com/favicon.ico",
                        "url": "https://quillbot.com/"
                  },
                  {
                        "name": "Copy.ai",
                        "imgUrl": "https://www.copy.ai/favicon.ico",
                        "url": "https://www.copy.ai/"
                  },
                  {
                        "name": "Jasper AI",
                        "imgUrl": "https://www.jasper.ai/favicon.ico",
                        "url": "https://www.jasper.ai/"
                  },
                  {
                        "name": "Midjourney",
                        "imgUrl": "https://www.midjourney.com/favicon.ico",
                        "url": "https://www.midjourney.com/"
                  },
                  // {
                  //       "name": "DALL-E",
                  //       "imgUrl": "https://labs.openai.com/favicon.ico",
                  //       "url": "https://labs.openai.com/"
                  // },
                  // {
                  //       "name": "Stable Diffusion Online",
                  //       "imgUrl": "https://stablediffusionweb.com/favicon.ico",
                  //       "url": "https://stablediffusionweb.com/"
                  // },
                  // {
                  //       "name": "Remove.bg",
                  //       "imgUrl": "https://www.remove.bg/favicon.ico",
                  //       "url": "https://www.remove.bg/"
                  // },
                  {
                        "name": "Upscale.media",
                        "imgUrl": "https://www.upscale.media/favicon.ico",
                        "url": "https://www.upscale.media/"
                  },
                  // {
                  //       "name": "Deep Dream Generator",
                  //       "imgUrl": "https://deepdreamgenerator.com/favicon.ico",
                  //       "url": "https://deepdreamgenerator.com/"
                  // },
                  {
                        "name": "Runway ML",
                        "imgUrl": "https://runwayml.com/favicon.ico",
                        "url": "https://runwayml.com/"
                  }
            ]
      }
      $().ready(function () {
            $('.container').empty();
            console.log(websites['sites'])
            var sites = websites['sites'];
            //为.container动态添加新闻卡片
            for (var i = 0; i < sites.length; i++) {
                  var sites_card = $('<div class="card">' +
                        '<a target="_blank" href="' + sites[i].url + '">' +
                        '<img src="' + sites[i].imgUrl + '">' +
                        '</a>' +
                        '<div class="desc">' + sites[i].name + '</div>' +
                        '</div>');
                  console.log(sites_card)
                  $('.container').append(sites_card);
            }

      });

      document.oncontextmenu = new Function("event.returnValue=false");
      document.onselectstart = new Function("event.returnValue=false");
      document.oncontextmenu = function (e) { return false; }
      document.onkeydown = function (e) {
            if (window.event && window.event.keyCode == 123) {
                  event.keyCode = 0;
                  event.returnValue = false;
                  return false;
            }
      }
</script>

</html>